<table class="education-info" id="legend-box-<?php echo $education->id?>" <?php echo (!$current) ? "style='display:none'" : ""?>>
	<?php if(!$current) :?>
		<tr>
			<td colspan="2"><div class='flash-notice'>Ghi chú : đây là thành tích học tập trước khi<?php echo ($education->status == 1) ? 'nhận học bổng' : 'chuyển trường';?></div></td>
		</tr>
	<?php endif;?>
	<tr>
		<td class=""><strong><?php echo CHtml::encode($education->getAttributeLabel('school_name'));?></strong></td>
		<td class=""><?php echo CHtml::encode($education->school_name);?></td>
	</tr>
	<tr>
		<td class=""><strong><?php echo CHtml::encode($education->getAttributeLabel('major'));?></strong></td>
		<td class=""><?php echo CHtml::encode($education->major)?></td>
	</tr>
	<tr>
		<td class=""><strong><?php echo CHtml::encode($education->getAttributeLabel('start_year'));?></strong></td>
		<td class=""><?php echo str_replace('/', '-', CHtml::encode($education->start_year));?></td>
	</tr>
	<tr>
		<td class=""><strong><?php echo $education->getAttributeLabel('end_year');?></strong></td>
		<td class="border-bottom"><?php echo str_replace('/', '-', CHtml::encode($education->end_year));?></td>
	</tr>
	<tr valign="top">
		<td class="" style="vertical-align: top"><strong>Thành tích học tập</strong></td>
		<td class="border-bottom border-right border-left">
			<?php $semesters = $education->semester;?>
			<?php if (!empty($semesters)) :?>
				<table>
				<?php foreach ($semesters as $semester):?>
					<tr>
						<td><span class="badge badge-info"><?php echo CHtml::encode($semester->name)?></span></td>
						<td>
							<table style="margin-bottom: 0px;" cellpadding="2">
								<?php $subjects = $semester->subjects;?>
								<?php $trName 	= '<tr>';?>
								<?php $trScore 	= '<tr>';?>
									<?php foreach ($subjects as $subject):?>
											<?php $trName 	.= '<td align="center" style="min-width:30px;"><code>'.CHtml::encode($subject->name).'</code></td>'?>
											<?php $trScore 	.= '<td align="center"><strong>'.CHtml::encode($subject->score).'</strong></td>'?>
									<?php endforeach;?>
								<?php echo $trName 	.= '<td align="center"><code class="summary">'.CHtml::encode($semester->summary_label).'</code></td></tr>';?>
								<?php echo $trScore .= '<td align="center"><strong>'.CHtml::encode($semester->summary_value).'</strong></td></tr>';?>
							</table>
						</td>
					</tr>
				<?php endforeach;?>
				</table>
			<?php else :?>
				Chưa cập nhật
			<?php endif?>
		</td>
	</tr>
</table>